package com.darren.euc.service;

import java.util.List;
import java.util.Map;

import com.darren.euc.entity.Client;
import com.darren.euc.entity.Clue;
import com.darren.euc.entity.PageBean;

import net.sf.json.JSONObject;

public interface ClientService {
    
	public Client save(Client client);
    
	public Client update(Client client);
	
	public void delete(Client client);
    
	public List<Client> getAll();
	
	public List<Client> getActiveclient();
	
	public List<Client> getMemberClient();
	
	public List<Client> getClientForMember();
	    
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public PageBean queryCluesWithOrder(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public PageBean queryCluesWithClient(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public PageBean queryCluesWithEnterClient(JSONObject requestJson,Integer pageSize, Integer currentPage);

	public List<Clue> queryCluesByClientName(String clientName);
	public List<Clue> queryCluesByClientNameEqual(String clientName);
	/**
	 * 通过查询条件查询 企业数据（app端使用）
	 * @param para
	 * @param pn
	 * @param ps
	 * @return
	 */
    PageBean findPage(Map para, Integer pn, Integer ps);

	/**
	 * 企业详情
	 * @param client_id 企业id
	 */
	Map clientDetail(Integer client_id);

	Clue findByClientId(int clientId);

	/**
	 * 判断人数是否已满
	 * @param alreadyIn
	 * @return
	 */
    String judgeFull(Integer alreadyIn,Integer clientId);
}